import { defHttp } from '/@/utils/http/axios'

enum Api {
  getList = '/order/query',
  insert = '/order/insert',
  update = '/order/update',
  delete = '/order/delete',
}

/**
 * @description:
 */

export const getOrderList = (data) => {
  return defHttp.post({ url: Api.getList, data })
}

export const insertOrder = (data) => {
  return defHttp.post({ url: Api.insert, data })
}

export const updateOrder = (data) => {
  return defHttp.post({ url: Api.update, data })
}

export const deleteOrder = (data) => {
  return defHttp.post({ url: Api.delete, data })
}
